<style>
    .layui-form-label {
        width: 70px;
    }
</style>
<div class="layuimini-container">
    <div class="layuimini-main" id="app">
        <div class="layui-tab layui-tab-brief" lay-filter="docDemoTabBrief">
            <ul class="layui-tab-title">
                <li class="layui-this">积分配置</li>
            </ul>
            <div class="layui-tab-content">
                <div class="layui-tab-item layui-show">

                    <form class="layui-form layuimini-form">
                        <input type="hidden" name="field" value="score">

                        <div class="layui-form-item">
                            <label class="layui-form-label">积分名称</label>
                            <div class="layui-input-inline">
                                <input type="text" name="score_name" value="{:sysconfig('score.score_name')}"  autocomplete="off"
                                       class="layui-input">
                            </div>
                        </div>
                        <div class="layui-form-item">
                            <label class="layui-form-label">充值开启</label>
                            <div class="layui-input-inline">
                                <input type="radio" name="open_recharge" value="0" title="关闭" {if condition="sysconfig('score.open_recharge') eq 0" }checked{/if}>
                                <input type="radio" name="open_recharge" value="1" title="开启" {if condition="sysconfig('score.open_recharge') eq 1" }checked{/if}>
                            </div>
                        </div>
                        <div class="layui-form-item">
                            <label class="layui-form-label">充值的支付方式</label>
                            <div class="layui-input-block">
                                <div  data-xmSelect="deposit_payments" data-value="{:sysconfig('score.deposit_payments')}"></div>
                            </div>
                        </div>
                        <div class="layui-form-item">
                            <label class="layui-form-label">升级VIP开启</label>
                            <div class="layui-input-inline">
                                <input type="radio" name="open_upgrade" value="0" title="关闭" {if condition="sysconfig('score.open_upgrade') eq 0" }checked{/if}>
                                <input type="radio" name="open_upgrade" value="1" title="开启" {if condition="sysconfig('score.open_upgrade') eq 1" }checked{/if}>
                            </div>
                        </div>

                        <div class="layui-form-item">
                            <label class="layui-form-label">最低充值积分数</label>
                            <div class="layui-input-inline">
                                <input type="number" name="min_recharge"
                                       value="{:sysconfig('score.min_recharge')}"
                                       autocomplete="off" class="layui-input">
                            </div>
                        </div>
                        <div class="layui-form-item">
                            <label class="layui-form-label">注册积分</label>
                            <div class="layui-input-inline">
                                <input type="number" name="reg_award"
                                       value="{:sysconfig('score.reg_award')}"
                                       autocomplete="off" class="layui-input">
                            </div>
                        </div>
                        <div class="layui-form-item">
                            <label class="layui-form-label">登录积分(每天1次有效)</label>
                            <div class="layui-input-inline">
                                <input type="number" name="login_award"
                                       value="{:sysconfig('score.login_award')}"
                                       autocomplete="off" class="layui-input">
                            </div>
                        </div>
                        <div class="layui-form-item">
                            <label class="layui-form-label">最高充值积分数</label>
                            <div class="layui-input-inline">
                                <input type="number" name="max_recharge"
                                       value="{:sysconfig('score.max_recharge')}"
                                       autocomplete="off" class="layui-input">
                            </div>
                        </div>
                        <div class="layui-form-item">
                            <label class="layui-form-label">每个积分金额</label>
                            <div class="layui-input-inline">
                                <input type="number" name="score_price" value="{:sysconfig('score.score_price')}" autocomplete="off" class="layui-input">
                            </div>
                            <div class="label-tint">1元可充值多少积分</div>
                        </div>


                        <div class="hr-line"></div>
                        <div class="submit-info text-center">
                            <button type="submit" class="layui-btn layui-btn-normal layui-btn-sm" lay-submit="system.config/save" data-refresh="false">确认</button>
                            <a class="layui-btn layui-btn-primary layui-btn-sm" layform-close>关闭</a>
                        </div>

                    </form>

                </div>

            </div>
        </div>

    </div>
</div>

